/* Theme Toggle page styles */
.list {
  flex: 1;
  padding: 0;
  margin: 0;
}

.componentSection {
  padding: 20px;
  background-color: var(--background-color, #f5f5f5);
  min-height: 100vh;
}

.sectionTitle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-text-color, #333);
  margin-bottom: 24px;
  text-align: center;
}

.sectionDescription {
  font-size: 16px;
  color: var(--secondary-text-color, #666);
  text-align: center;
  margin-bottom: 32px;
  line-height: 1.5;
}

.componentBlock {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.componentItem {
  background: var(--card-background, #ffffff);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color, #e5e5e5);
}

.itemLabel {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-text-color, #333);
  margin-bottom: 8px;
}

.itemDesc {
  font-size: 14px;
  color: var(--secondary-text-color, #666);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Theme display styles */
.themeContainer {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #e9ecef;
}

.themeDisplay {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.themeIcon {
  font-size: 48px;
  line-height: 1;
}

.themeInfo {
  flex: 1;
}

.themeName {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-text-color, #333);
  margin-bottom: 4px;
}

.themeDesc {
  font-size: 14px;
  color: var(--secondary-text-color, #666);
  line-height: 1.4;
}

/* Refresh button styles */
.refreshButton {
  background: #f8f9fa;
  color: var(--primary-text-color, #333);
  border: 1px solid #e9ecef;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  align-self: flex-start;
}

.refreshButton:hover {
  background: #e9ecef;
  transform: translateY(-1px);
}

/* Toggle button styles */
.toggleContainer {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 24px;
  border: 1px solid #e9ecef;
}

.toggleButton {
  width: 100%;
  background: linear-gradient(135deg, #007aff, #0056b3);
  color: white;
  border: none;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.toggleButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.3);
}

.toggleButton:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
}

.toggleButton.dark {
  background: linear-gradient(135deg, #1a1a1a, #333333);
}

.toggleButton.toggling {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.buttonContent {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.buttonIcon {
  font-size: 20px;
  line-height: 1;
}

.buttonText {
  font-size: 16px;
  font-weight: 600;
}

.toggleInfo {
  background: #ffffff;
  border-radius: 8px;
  padding: 16px;
  border: 1px solid #e9ecef;
  margin-bottom: 16px;
}

.infoTitle {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-text-color, #333);
  margin-bottom: 8px;
}

.infoText {
  font-size: 14px;
  color: var(--secondary-text-color, #666);
  line-height: 1.5;
}

/* Result container styles */
.resultContainer {
  background: #ffffff;
  border-radius: 8px;
  padding: 16px;
  border: 1px solid #dee2e6;
}

.resultLabel {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-text-color, #333);
  margin-bottom: 8px;
}

.resultText {
  font-size: 14px;
  color: var(--secondary-text-color, #666);
  line-height: 1.5;
  word-break: break-word;
  font-family: 'Monaco', 'Menlo', monospace;
  background: #f8f9fa;
  padding: 8px;
  border-radius: 4px;
}

/* Preview styles */
.previewContainer {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #e9ecef;
}

.previewCard {
  background: var(--card-background, #ffffff);
  border-radius: 8px;
  padding: 20px;
  border: 1px solid var(--border-color, #e5e5e5);
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.previewHeader {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-text-color, #333);
  margin-bottom: 12px;
}

.previewContent p {
  color: var(--secondary-text-color, #666);
  margin-bottom: 16px;
  line-height: 1.5;
}

.previewButton {
  background: var(--accent-color, #007aff);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.previewButton:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

/* Color palette styles */
.colorPalette {
  background: var(--card-background, #ffffff);
  border-radius: 8px;
  padding: 16px;
  border: 1px solid var(--border-color, #e5e5e5);
}

.paletteTitle {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-text-color, #333);
  margin-bottom: 12px;
}

.colorGrid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.colorItem {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--secondary-text-color, #666);
}

.colorSwatch {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 2px solid var(--border-color, #e5e5e5);
}

/* Info container styles */
.infoContainer {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #e9ecef;
}

.infoSection {
  background: #ffffff;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid #e9ecef;
}

.infoSection:last-child {
  margin-bottom: 0;
}

.infoSectionTitle {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-text-color, #333);
  margin-bottom: 12px;
}

.infoList {
  margin: 0;
  padding-left: 20px;
}

.infoList li {
  color: var(--secondary-text-color, #666);
  line-height: 1.6;
  margin-bottom: 8px;
}

.infoList li:last-child {
  margin-bottom: 0;
}

.infoList code {
  background: #f8f9fa;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 13px;
  color: var(--accent-color, #007aff);
}

/* Responsive design */
@media (max-width: 768px) {
  .componentSection {
    padding: 16px;
  }

  .toggleButton {
    padding: 14px 20px;
    font-size: 15px;
  }

  .buttonContent {
    gap: 10px;
  }

  .buttonIcon {
    font-size: 18px;
  }

  .buttonText {
    font-size: 15px;
  }

  .colorGrid {
    gap: 12px;
  }

  .colorItem {
    gap: 6px;
  }

  .colorSwatch {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 480px) {
  .themeDisplay {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .themeIcon {
    font-size: 40px;
  }

  .toggleButton {
    padding: 12px 16px;
    font-size: 14px;
  }

  .buttonIcon {
    font-size: 16px;
  }

  .buttonText {
    font-size: 14px;
  }

  .colorGrid {
    justify-content: center;
  }
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
  .componentSection {
    background-color: var(--dark-background-color, #1a1a1a);
  }

  .componentItem {
    background: var(--dark-card-background, #2d2d2d);
    border-color: var(--dark-border-color, #404040);
  }

  .sectionTitle {
    color: var(--dark-primary-text-color, #ffffff);
  }

  .sectionDescription {
    color: var(--dark-secondary-text-color, #cccccc);
  }

  .itemLabel {
    color: var(--dark-primary-text-color, #ffffff);
  }

  .itemDesc {
    color: var(--dark-secondary-text-color, #cccccc);
  }

  .themeContainer,
  .toggleContainer,
  .previewContainer,
  .infoContainer {
    background: #383838;
    border-color: #555;
  }

  .toggleInfo,
  .resultContainer,
  .previewCard,
  .colorPalette,
  .infoSection {
    background: #2d2d2d;
    border-color: #555;
  }

  .themeName,
  .infoTitle,
  .resultLabel,
  .previewHeader,
  .paletteTitle,
  .infoSectionTitle {
    color: var(--dark-primary-text-color, #ffffff);
  }

  .themeDesc,
  .infoText,
  .resultText,
  .previewContent p,
  .colorItem {
    color: var(--dark-secondary-text-color, #cccccc);
  }

  .colorSwatch {
    border-color: #555;
  }

  .infoList li {
    color: var(--dark-secondary-text-color, #cccccc);
  }

  .infoList code {
    background: #383838;
    color: #61dafb;
  }

  .refreshButton {
    background: #383838;
    color: var(--dark-primary-text-color, #ffffff);
    border-color: #555;
  }

  .refreshButton:hover {
    background: #555;
  }
}